<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TMledit类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_mledit-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TMledit类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TMledit 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_mledit.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab9b42be21468c8975e93206180557888"><td class="memItemLeft" align="right" valign="top"><a id="ab9b42be21468c8975e93206180557888"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TMledit</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:ab9b42be21468c8975e93206180557888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7fd309134bd0ba7d6391b04613e9d67"><td class="memItemLeft" align="right" valign="top"><a id="ad7fd309134bd0ba7d6391b04613e9d67"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TMledit</b> (const mledit_t *nativeObj)</td></tr>
<tr class="separator:ad7fd309134bd0ba7d6391b04613e9d67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498fa28a95b7fe0e687496d892c3eb1d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a498fa28a95b7fe0e687496d892c3eb1d">SetReadonly</a> (bool readonly)</td></tr>
<tr class="separator:a498fa28a95b7fe0e687496d892c3eb1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6688971931479e14ad06f5f6687c7493"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a6688971931479e14ad06f5f6687c7493">SetCancelable</a> (bool cancelable)</td></tr>
<tr class="separator:a6688971931479e14ad06f5f6687c7493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9a4053100b214dc90fba1086283c87d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ac9a4053100b214dc90fba1086283c87d">SetFocus</a> (bool focus)</td></tr>
<tr class="separator:ac9a4053100b214dc90fba1086283c87d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a655a68ebda0dcbc400ff4a34644f95f2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a655a68ebda0dcbc400ff4a34644f95f2">SetWrapWord</a> (bool wrap_word)</td></tr>
<tr class="separator:a655a68ebda0dcbc400ff4a34644f95f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3fdd22c93fb88958542435de4e3ebd1"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#af3fdd22c93fb88958542435de4e3ebd1">SetOverwrite</a> (bool overwrite)</td></tr>
<tr class="separator:af3fdd22c93fb88958542435de4e3ebd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc2209998528361f3d197bdd71c013b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#aedc2209998528361f3d197bdd71c013b">SetMaxLines</a> (uint32_t max_lines)</td></tr>
<tr class="separator:aedc2209998528361f3d197bdd71c013b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cb2c50d9b014fc664b1e3279096777b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a5cb2c50d9b014fc664b1e3279096777b">SetMaxChars</a> (uint32_t max_chars)</td></tr>
<tr class="separator:a5cb2c50d9b014fc664b1e3279096777b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea55eed46e450ffbc34048eb6500ed38"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#aea55eed46e450ffbc34048eb6500ed38">SetTips</a> (const char *tips)</td></tr>
<tr class="separator:aea55eed46e450ffbc34048eb6500ed38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a034ad62c38e54fc1af973978663b11e8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a034ad62c38e54fc1af973978663b11e8">SetTrTips</a> (const char *tr_tips)</td></tr>
<tr class="separator:a034ad62c38e54fc1af973978663b11e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1cd74dd440e2277cde246439031bb85"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ae1cd74dd440e2277cde246439031bb85">SetKeyboard</a> (const char *keyboard)</td></tr>
<tr class="separator:ae1cd74dd440e2277cde246439031bb85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef0be84af4454ec2290a7fcfe807f0e6"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#aef0be84af4454ec2290a7fcfe807f0e6">SetCursor</a> (uint32_t cursor)</td></tr>
<tr class="separator:aef0be84af4454ec2290a7fcfe807f0e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7742f1dddb77ca84c56e3de077d123c2"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a7742f1dddb77ca84c56e3de077d123c2">GetCursor</a> ()</td></tr>
<tr class="separator:a7742f1dddb77ca84c56e3de077d123c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb1d906034c5588f9b41f0dfa6b7521"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a0bb1d906034c5588f9b41f0dfa6b7521">SetScrollLine</a> (uint32_t scroll_line)</td></tr>
<tr class="separator:a0bb1d906034c5588f9b41f0dfa6b7521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a13f2f304bb5cd0c39b060ad65552a3"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a1a13f2f304bb5cd0c39b060ad65552a3">ScrollToOffset</a> (uint32_t offset)</td></tr>
<tr class="separator:a1a13f2f304bb5cd0c39b060ad65552a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d350fc4d50d7a50f6c8f5b4cbe84048"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a9d350fc4d50d7a50f6c8f5b4cbe84048">SetOpenImWhenFocused</a> (bool open_im_when_focused)</td></tr>
<tr class="separator:a9d350fc4d50d7a50f6c8f5b4cbe84048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a709aba3dee8b07fada59d367d238fd71"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a709aba3dee8b07fada59d367d238fd71">SetCloseImWhenBlured</a> (bool close_im_when_blured)</td></tr>
<tr class="separator:a709aba3dee8b07fada59d367d238fd71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9c67ac0dc83eb8bec0108263e1c6c31"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#af9c67ac0dc83eb8bec0108263e1c6c31">SetSelect</a> (uint32_t start, uint32_t end)</td></tr>
<tr class="separator:af9c67ac0dc83eb8bec0108263e1c6c31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5f87315cc7d301d2c1bc44f9218008c"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ae5f87315cc7d301d2c1bc44f9218008c">GetSelectedText</a> ()</td></tr>
<tr class="separator:ae5f87315cc7d301d2c1bc44f9218008c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f87c9cc6b3660d1e62e4860eb47bdb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ac5f87c9cc6b3660d1e62e4860eb47bdb">InsertText</a> (uint32_t offset, const char *text)</td></tr>
<tr class="separator:ac5f87c9cc6b3660d1e62e4860eb47bdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75f6de38ee72fe4b097260a2eb9c9271"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a75f6de38ee72fe4b097260a2eb9c9271">GetTips</a> () const</td></tr>
<tr class="separator:a75f6de38ee72fe4b097260a2eb9c9271"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a700fe788e1c57fbb0d1649961a54fe79"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a700fe788e1c57fbb0d1649961a54fe79">GetTrTips</a> () const</td></tr>
<tr class="separator:a700fe788e1c57fbb0d1649961a54fe79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadc9cb74c428dd7862838c258e935f76"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#aadc9cb74c428dd7862838c258e935f76">GetKeyboard</a> () const</td></tr>
<tr class="separator:aadc9cb74c428dd7862838c258e935f76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fb022c04fadfe1bee72ec1dfaa6378b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a6fb022c04fadfe1bee72ec1dfaa6378b">GetMaxLines</a> () const</td></tr>
<tr class="separator:a6fb022c04fadfe1bee72ec1dfaa6378b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0063e0791ff0ef876e5a458caf6b2fc4"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a0063e0791ff0ef876e5a458caf6b2fc4">GetMaxChars</a> () const</td></tr>
<tr class="separator:a0063e0791ff0ef876e5a458caf6b2fc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aae4bf91fa14dde34a2bba88c590b15"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a2aae4bf91fa14dde34a2bba88c590b15">GetScrollLine</a> () const</td></tr>
<tr class="separator:a2aae4bf91fa14dde34a2bba88c590b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ef3635314f516a431a2e862279265c5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a0ef3635314f516a431a2e862279265c5">GetOverwrite</a> () const</td></tr>
<tr class="separator:a0ef3635314f516a431a2e862279265c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad035922a7db0a6742c7d57cf006fe79a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ad035922a7db0a6742c7d57cf006fe79a">GetWrapWord</a> () const</td></tr>
<tr class="separator:ad035922a7db0a6742c7d57cf006fe79a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf456713648c2252e7d3e761b0381a25"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#adf456713648c2252e7d3e761b0381a25">GetReadonly</a> () const</td></tr>
<tr class="separator:adf456713648c2252e7d3e761b0381a25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada7f19909882cd1776af05a3d82e8adc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ada7f19909882cd1776af05a3d82e8adc">GetCancelable</a> () const</td></tr>
<tr class="separator:ada7f19909882cd1776af05a3d82e8adc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6a201368f3ead861df099e9f6b4282a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#ab6a201368f3ead861df099e9f6b4282a">GetOpenImWhenFocused</a> () const</td></tr>
<tr class="separator:ab6a201368f3ead861df099e9f6b4282a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d8f14c3ec3ec04d6afbede1a2933120"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a3d8f14c3ec3ec04d6afbede1a2933120">GetCloseImWhenBlured</a> () const</td></tr>
<tr class="separator:a3d8f14c3ec3ec04d6afbede1a2933120"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:acbe8d0cb32f7d115d4cb884b324a361b"><td class="memItemLeft" align="right" valign="top"><a id="acbe8d0cb32f7d115d4cb884b324a361b"></a>
static <a class="el" href="class_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:acbe8d0cb32f7d115d4cb884b324a361b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac86501f225112abcdf63e2ab4b286b2b"><td class="memItemLeft" align="right" valign="top"><a id="ac86501f225112abcdf63e2ab4b286b2b"></a>
static <a class="el" href="class_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:ac86501f225112abcdf63e2ab4b286b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13f45a629013f0545f72f8425b2c97fa"><td class="memItemLeft" align="right" valign="top"><a id="a13f45a629013f0545f72f8425b2c97fa"></a>
static <a class="el" href="class_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a13f45a629013f0545f72f8425b2c97fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26693c840ed06dd662cafcb404a9ae2d"><td class="memItemLeft" align="right" valign="top"><a id="a26693c840ed06dd662cafcb404a9ae2d"></a>
static <a class="el" href="class_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a26693c840ed06dd662cafcb404a9ae2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a087ad4475dcfbb6ce1986ee389196a05"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_mledit.html#a087ad4475dcfbb6ce1986ee389196a05">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a087ad4475dcfbb6ce1986ee389196a05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>多行编辑器控件。</p>
<p>mledit_t是widget\_t的子类控件，widget_t的函数均适用于mledit_t控件。</p>
<p>在xml中使用"mledit"标签创建多行编辑器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">mledit</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;300&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/ui/mledit.xml">mledit.xml</a></p>
<p>在c代码中使用函数mledit_create创建多行编辑器控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mledit.c">mledit demo</a></p>
<p>time_clock一般不需要设置style。 </p>
</blockquote>
</blockquote>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a087ad4475dcfbb6ce1986ee389196a05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a087ad4475dcfbb6ce1986ee389196a05">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TMledit::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建mledit对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ada7f19909882cd1776af05a3d82e8adc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada7f19909882cd1776af05a3d82e8adc">&#9670;&nbsp;</a></span>GetCancelable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetCancelable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否支持撤销编辑。如果为TRUE，在失去焦点之前可以撤销所有修改(恢复获得焦点之前的内容)。</p>
<blockquote class="doxtable">
<p>* 1.一般配合keyboard的"cancel"按钮使用。</p><ul>
<li>2.为TRUE时，如果内容有变化，会设置编辑器的状态为changed，所以此时编辑器需要支持changed状态的style。 </li>
</ul>
</blockquote>

</div>
</div>
<a id="a3d8f14c3ec3ec04d6afbede1a2933120"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d8f14c3ec3ec04d6afbede1a2933120">&#9670;&nbsp;</a></span>GetCloseImWhenBlured()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetCloseImWhenBlured </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否在失去焦点时关闭输入法(默认是)。 </p>

</div>
</div>
<a id="a7742f1dddb77ca84c56e3de077d123c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7742f1dddb77ca84c56e3de077d123c2">&#9670;&nbsp;</a></span>GetCursor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TMledit::GetCursor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取编辑器光标位置。</p>
<dl class="section return"><dt>返回</dt><dd>返回光标位置。 </dd></dl>

</div>
</div>
<a id="aadc9cb74c428dd7862838c258e935f76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadc9cb74c428dd7862838c258e935f76">&#9670;&nbsp;</a></span>GetKeyboard()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TMledit::GetKeyboard </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自定义软键盘名称。 </p>

</div>
</div>
<a id="a0063e0791ff0ef876e5a458caf6b2fc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0063e0791ff0ef876e5a458caf6b2fc4">&#9670;&nbsp;</a></span>GetMaxChars()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TMledit::GetMaxChars </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大字符数。 </p>

</div>
</div>
<a id="a6fb022c04fadfe1bee72ec1dfaa6378b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fb022c04fadfe1bee72ec1dfaa6378b">&#9670;&nbsp;</a></span>GetMaxLines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TMledit::GetMaxLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大行数。 </p>

</div>
</div>
<a id="ab6a201368f3ead861df099e9f6b4282a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6a201368f3ead861df099e9f6b4282a">&#9670;&nbsp;</a></span>GetOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得焦点时打开输入法。</p>
<blockquote class="doxtable">
<p>主要用于没有指针设备的情况，否则每次切换焦点时都打开输入法。 </p>
</blockquote>

</div>
</div>
<a id="a0ef3635314f516a431a2e862279265c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ef3635314f516a431a2e862279265c5">&#9670;&nbsp;</a></span>GetOverwrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetOverwrite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否启用覆盖行。 </p>

</div>
</div>
<a id="adf456713648c2252e7d3e761b0381a25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf456713648c2252e7d3e761b0381a25">&#9670;&nbsp;</a></span>GetReadonly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetReadonly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>编辑器是否为只读。 </p>

</div>
</div>
<a id="a2aae4bf91fa14dde34a2bba88c590b15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aae4bf91fa14dde34a2bba88c590b15">&#9670;&nbsp;</a></span>GetScrollLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TMledit::GetScrollLine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>鼠标一次滚动行数。 </p>

</div>
</div>
<a id="ae5f87315cc7d301d2c1bc44f9218008c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5f87315cc7d301d2c1bc44f9218008c">&#9670;&nbsp;</a></span>GetSelectedText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TMledit::GetSelectedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取选中的文本。 使用完后需调用 TKMEM_FREE() 进行释放文本占有内存。</p>
<dl class="section return"><dt>返回</dt><dd>返回选中文本。 </dd></dl>

</div>
</div>
<a id="a75f6de38ee72fe4b097260a2eb9c9271"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75f6de38ee72fe4b097260a2eb9c9271">&#9670;&nbsp;</a></span>GetTips()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TMledit::GetTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>输入提示。 </p>

</div>
</div>
<a id="a700fe788e1c57fbb0d1649961a54fe79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a700fe788e1c57fbb0d1649961a54fe79">&#9670;&nbsp;</a></span>GetTrTips()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TMledit::GetTrTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>保存用于翻译的提示信息。 </p>

</div>
</div>
<a id="ad035922a7db0a6742c7d57cf006fe79a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad035922a7db0a6742c7d57cf006fe79a">&#9670;&nbsp;</a></span>GetWrapWord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TMledit::GetWrapWord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否自动折行。 </p>

</div>
</div>
<a id="ac5f87c9cc6b3660d1e62e4860eb47bdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5f87c9cc6b3660d1e62e4860eb47bdb">&#9670;&nbsp;</a></span>InsertText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::InsertText </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>插入一段文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>插入的偏移位置。 </td></tr>
    <tr><td class="paramname">text</td><td>待插入的文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1a13f2f304bb5cd0c39b060ad65552a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a13f2f304bb5cd0c39b060ad65552a3">&#9670;&nbsp;</a></span>ScrollToOffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::ScrollToOffset </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器滚动到指定偏移位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>偏移位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6688971931479e14ad06f5f6687c7493"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6688971931479e14ad06f5f6687c7493">&#9670;&nbsp;</a></span>SetCancelable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetCancelable </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>cancelable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否为可撤销修改。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cancelable</td><td>是否为可撤销修。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a709aba3dee8b07fada59d367d238fd71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a709aba3dee8b07fada59d367d238fd71">&#9670;&nbsp;</a></span>SetCloseImWhenBlured()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetCloseImWhenBlured </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>close_im_when_blured</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否在失去焦点时关闭输入法。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">close_im_when_blured</td><td>是否是否在失去焦点时关闭输入法。在失去焦点时关闭输入法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aef0be84af4454ec2290a7fcfe807f0e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef0be84af4454ec2290a7fcfe807f0e6">&#9670;&nbsp;</a></span>SetCursor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetCursor </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器光标位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>光标位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac9a4053100b214dc90fba1086283c87d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9a4053100b214dc90fba1086283c87d">&#9670;&nbsp;</a></span>SetFocus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetFocus </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为焦点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">focus</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae1cd74dd440e2277cde246439031bb85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1cd74dd440e2277cde246439031bb85">&#9670;&nbsp;</a></span>SetKeyboard()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetKeyboard </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>keyboard</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置自定义软键盘名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">keyboard</td><td>键盘名称(相应UI资源必须存在)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5cb2c50d9b014fc664b1e3279096777b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cb2c50d9b014fc664b1e3279096777b">&#9670;&nbsp;</a></span>SetMaxChars()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetMaxChars </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>max_chars</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器的最大字符数（0 为不限制字符数）。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_chars</td><td>最大字符数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aedc2209998528361f3d197bdd71c013b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc2209998528361f3d197bdd71c013b">&#9670;&nbsp;</a></span>SetMaxLines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetMaxLines </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>max_lines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器的最大行数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_lines</td><td>最大行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9d350fc4d50d7a50f6c8f5b4cbe84048"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d350fc4d50d7a50f6c8f5b4cbe84048">&#9670;&nbsp;</a></span>SetOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>open_im_when_focused</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否在获得焦点时打开输入法。</p>
<blockquote class="doxtable">
<p>* 设置默认焦点时，打开窗口时不弹出软键盘。</p><ul>
<li>用键盘切换焦点时，编辑器获得焦点时不弹出软键盘。 </li>
</ul>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">open_im_when_focused</td><td>是否在获得焦点时打开输入法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af3fdd22c93fb88958542435de4e3ebd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3fdd22c93fb88958542435de4e3ebd1">&#9670;&nbsp;</a></span>SetOverwrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetOverwrite </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>overwrite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否启用覆盖行（在行数达到最大行数时，可继续新增行，但最早的行将会消失）。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">overwrite</td><td>是否启用覆盖行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a498fa28a95b7fe0e687496d892c3eb1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a498fa28a95b7fe0e687496d892c3eb1d">&#9670;&nbsp;</a></span>SetReadonly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetReadonly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>readonly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否为只读。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">readonly</td><td>只读。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0bb1d906034c5588f9b41f0dfa6b7521"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bb1d906034c5588f9b41f0dfa6b7521">&#9670;&nbsp;</a></span>SetScrollLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetScrollLine </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>scroll_line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器滚动速度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scroll_line</td><td>滚动行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af9c67ac0dc83eb8bec0108263e1c6c31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9c67ac0dc83eb8bec0108263e1c6c31">&#9670;&nbsp;</a></span>SetSelect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetSelect </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>选择编辑器中指定范围的文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>起始偏移。 </td></tr>
    <tr><td class="paramname">end</td><td>结束偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aea55eed46e450ffbc34048eb6500ed38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea55eed46e450ffbc34048eb6500ed38">&#9670;&nbsp;</a></span>SetTips()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetTips </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器的输入提示。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tips</td><td>输入提示。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a034ad62c38e54fc1af973978663b11e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a034ad62c38e54fc1af973978663b11e8">&#9670;&nbsp;</a></span>SetTrTips()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetTrTips </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>tr_tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取翻译之后的文本，然后调用mledit_set_tips。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tr_tips</td><td>提示信息。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a655a68ebda0dcbc400ff4a34644f95f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a655a68ebda0dcbc400ff4a34644f95f2">&#9670;&nbsp;</a></span>SetWrapWord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TMledit::SetWrapWord </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>wrap_word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置编辑器是否自动折行。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">wrap_word</td><td>是否自动折行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
